<?php

namespace App\Services\Home;

use App\Models\Attribute;

class AttributeService
{
    public function getAttributeById($parent_id)
    {
        return Attribute::where('parent_id',$parent_id)->where('status','T')->orderBy('sort','asc')->get();
    }

    // 新房属性,除区域外
//    public function getNewHouseAttr()
//    {
//        return Attribute::with('allChilds')->where('status','T')->where('id','>',1)->whereIn('attr_type',[0,1])->where('parent_id',0)->orderBy('sort','asc')->get();
//    }


}